package cn.hicard.auth.dao;

import java.util.List;

import cn.hicard.auth.entity.MgRoleSource;

/**
 * [角色-资源]管理DAO接口
 * @author zhangy
 *
 */
public interface RoleSourceDao {

	void saveRoleSources(List<MgRoleSource> list) throws Exception ;

	void deleteByRole(int pkRole) throws Exception ;

	/**
	 * 查找出与用户关联的资源主键
	 * @param pkRoleinfo
	 * @return
	 * @throws Exception 
	 */
	List<Integer> findSourcePkByRole(int pkRoleinfo) throws Exception;

}
